//
//  InfoArchiver.h
//  YYTextTest
//
//  Created by macintosh on 16/9/13.
//  Copyright © 2016年 macintosh. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface InfoArchiver : NSKeyedArchiver

+ (NSData *)archivedDataWithRootObject:(id)rootObject;
+ (BOOL)archiveRootObject:(id)rootObject toFile:(NSString *)path;

@end

@interface InfoUnarchiver : NSKeyedUnarchiver

+ (id)unarchiveObjectWithData:(NSData *)data;
+ (id)unarchiveObjectWithFile:(NSString *)path;

@end